﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using RobotGame.ScreenManagers;

namespace RobotGame
{
    public class MenuPanel
    {
        private ScreenManager screenManager;
        private Texture2D bgMenuPanel;


        public MenuPanel(ScreenManager screenManager)
        {
            this.screenManager = screenManager;
        }

        public void LoadContent()
        {
            ContentManager content = screenManager.Game.Content;
            bgMenuPanel = content.Load<Texture2D>(@"Textures/MainMenus/HudBkgd");

        }

        public void Update(GameTime gameTime)
        {
            
        }

        public void Draw(GameTime gameTime)
        {
            SpriteBatch spriteBatch = screenManager.SpriteBatch;
            spriteBatch.Begin();
            Vector2 bgPosition = new Vector2(0f, 525f);
            spriteBatch.Draw(bgMenuPanel, bgPosition,Color.White);
            spriteBatch.End();
        }
    }
}
